package org.example.buysystem.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.buysystem.entity.Carousel;
import org.example.buysystem.mapper.CarouselMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CarouselService extends ServiceImpl<CarouselMapper, Carousel> {


    @Resource
    private CarouselMapper carouselMapper;
    public List<Carousel> getAll() {
        return carouselMapper.getAllCarousel();


    }
}
